package com.wk.springboot.spring.beanPostProcessor;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * description:
 * date 2020-12-06 17:04
 *
 * @author Administrator
 * @version 1.0
 */
public class Person implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("person.......afterPropertiesSet");
    }

    @PostConstruct
    public void construct(){
        System.out.println("person.........construct");
    }

    public void initMethod(){
        System.out.println("person.........initMethod");
    }
}
